home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / comm / tcp / Socks5.lha / Socks5 / src / include / hide.h < prev    next >
C/C++ Source or Header  |  1999-03-10  |  2KB  |  78 lines

  1. /* Copyright (c) 1995-1999 NEC USA, Inc.  All rights reserved.               */
  2. /*                                                                           */
  3. /* The redistribution, use and modification in source or binary forms of     */
  4. /* this software is subject to the conditions set forth in the copyright     */
  5. /* document ("Copyright") included with this distribution.                   */
  6.  
  7. /*
  8.  * $Id: hide.h,v 1.4.4.5 1999/02/03 22:34:50 steve Exp $
  9.  */
  10.  
  11. #if defined(FOR_SHARED_LIBRARY) && defined(HIDEORIG)
  12.  
  13. #ifndef HIDE_H
  14. #define HIDE_H
  15.  
  16. /* Try to hide these functions so we don't get compiler pukage.              */
  17. #define HIDE(x)       _hidden_ ## x
  18. #define gethostbyname HIDE(gethostbyname)
  19. #define getpeername   HIDE(getpeername)
  20. #define getsockname   HIDE(getsockname)
  21. #define accept        HIDE(accept)
  22. #define connect       HIDE(connect)
  23. #define select        HIDE(select)
  24. #define bind          HIDE(bind)
  25. #define recvfrom      HIDE(recvfrom)
  26. #define sendto        HIDE(sendto)
  27. #ifdef HAVE_SENDMSG
  28. #define recvmsg       HIDE(recvmsg)
  29. #define sendmsg        HIDE(sendmsg)
  30. #endif
  31. #define recv          HIDE(recv)
  32. #define send          HIDE(send)
  33. #define read          HIDE(read)
  34. #define write         HIDE(write)
  35. #ifdef HAVE_RRESVPORT
  36. #define rresvport     HIDE(rresvport)
  37. #endif
  38. #define shutdown      HIDE(shutdown)
  39. #define listen        HIDE(listen)
  40. #define longjmp       HIDE(longjmp)
  41. #define close         HIDE(close)
  42. #define fclose        HIDE(fclose)
  43.  
  44. #else
  45.  
  46. #undef HIDE_H
  47.  
  48. /* Unhide these functions so we can deal with them now that includes are     */
  49. /* done...Hopefully...                                                       */
  50. #undef gethostbyname 
  51. #undef getpeername   
  52. #undef getsockname   
  53. #undef accept        
  54. #undef connect       
  55. #undef select       
  56. #undef bind          
  57. #undef recvfrom      
  58. #undef sendto        
  59. #ifdef HAVE_SENDMSG
  60. #undef recvmsg      
  61. #undef sendmsg        
  62. #endif
  63. #undef recv          
  64. #undef send          
  65. #undef read          
  66. #undef write         
  67. #ifdef HAVE_RRESVPORT
  68. #undef rresvport     
  69. #endif
  70. #undef shutdown      
  71. #undef listen        
  72. #undef longjmp        
  73. #undef close         
  74. #undef fclose        
  75.  
  76. #endif
  77. #endif
  78.